package com.zxe.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zxe.dao.UserDao;
import com.zxe.service.UserService;
import com.zxe.utils.ConvertUtils;
import org.springframework.stereotype.Service;
import com.zxe.dto.UserDTO;
import com.zxe.entity.UserEntity;

import java.util.Map;

@Service
public class UserServiceImpl extends CrudServiceImpl<UserDao, UserEntity, UserDTO> implements UserService {

    @Override
    public QueryWrapper<UserEntity> getWrapper(Map<String, Object> params) {
        return null;
    }

    @Override
    public UserDTO getById(Integer id) {
        return ConvertUtils.sourceToTarget(baseDao.selectById(id), UserDTO.class);
    }
}
